﻿using System;
using System.Collections.Generic;

namespace MsForgeReboot.Framework.Entities
{
    using System.ComponentModel.DataAnnotations;
    using System.Web.Mvc;

    public class Event : Post {

        [MaxLength(250)]
        [Required(AllowEmptyStrings = false)]
        public string Topic { get; set; }

        public UserGroup OrganizedBy { get; set; }

        [DataType(DataType.DateTime)]
        public DateTime? Begin { get; set; }

        [DataType(DataType.DateTime)]
        public DateTime? End { get; set; }
        
        [MaxLength(100)]
        [Required(AllowEmptyStrings = false)]
        public string Venue { get; set; }

        public Address Address { get; set; }

        public bool IsStreamingEvent { get; set; }

        [DataType(DataType.Html)]
        [Required(AllowEmptyStrings = false)]
        [AllowHtml]
        public string StreamingInstructions { get; set; }

        public string PicturePath { get; set; }

        public virtual IList<Speaker> Speakers { get; set; }
        
    }
}